package modler

import "gorm.io/gorm"

type User struct { //用户表
	gorm.Model
	Username string `gorm:"type:varchar(50)"`
	Password string `gorm:"type:varchar(50)"`
}
type Role struct { //角色表
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(50)"`
}
type UserROle struct { //用户和角色
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type RoleNode struct { //角色和权限
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type House struct { //货物
	gorm.Model
	HouseCode string `gorm:"type:varchar(50)"` //货物编号
	HouseCar  string `gorm:"type:varchar(50)"` //汽车
	HouseName string `gorm:"type:varchar(50)"` //货物名称
}
type HouseOrder struct { //订单
	gorm.Model
	HouseOrderCode string `gorm:"type:varchar(50)"` //订单编号
	HouseOrderName string `gorm:"type:varchar(50)"` //司机
	HouseOrderNO   string `gorm:"type:varchar(50)"` //开始地址
	HouseOrderNot  string `gorm:"type:varchar(50)"` //结束地址
	Hid            int    `gorm:"type:int"`
}
type HouseOrderList struct {
	OrderId        int    `gorm:"type:int"`
	HouseCode      string `gorm:"type:varchar(50)"` //货物编号
	HouseCar       string `gorm:"type:varchar(50)"` //汽车
	HouseName      string `gorm:"type:varchar(50)"` //货物名称
	HouseOrderCode string `gorm:"type:varchar(50)"` //订单编号
	HouseOrderName string `gorm:"type:varchar(50)"` //司机
	HouseOrderNO   string `gorm:"type:varchar(50)"` //开始地址
	HouseOrderNot  string `gorm:"type:varchar(50)"` //结束地址
}

////货物仓库////

type Cat struct {
	gorm.Model
	CarCode string `gorm:"type:varchar(50)"` //仓库编码
	CarNome string `gorm:"type:varchar(50)"` //仓库名
	CarCat  string `gorm:"type:varchar(50)"` //负责人
	CarNo   string `gorm:"type:varchar(50)"` //地区
}
type CatOrder struct {
	gorm.Model
	CarOrderCode   string `gorm:"type:varchar(50)"` //订单编码
	CarOrderName   string `gorm:"type:varchar(50)"` //订单供应商
	CarOrderNum    string `gorm:"type:varchar(50)"` //订单数量
	CarOrderPrince string `gorm:"type:varchar(50)"` //订单金额
	Cid            int    `gorm:"type:int"`
}
type CatOrderList struct {
	OrderId        int    `gorm:"type:int"`
	CarCode        string `gorm:"type:varchar(50)"` //仓库编码
	CarNome        string `gorm:"type:varchar(50)"` //仓库名
	CarCat         string `gorm:"type:varchar(50)"` //负责人
	CarNo          string `gorm:"type:varchar(50)"` //地区
	CarOrderCode   string `gorm:"type:varchar(50)"` //订单编码
	CarOrderName   string `gorm:"type:varchar(50)"` //订单供应商
	CarOrderNum    string `gorm:"type:varchar(50)"` //订单数量
	CarOrderPrince string `gorm:"type:varchar(50)"` //订单金额
}
